#ifndef SLIDESHOWDLG_H
#define SLIDESHOWDLG_H

#include <QDialog>
#include <QTreeWidgetItem>


namespace Ui {
class SlideShowDlg;
}

class SlideShowDlg : public QDialog
{
    Q_OBJECT

public:
    // explicit SlideShowDlg(QWidget *parent = nullptr, QTreeWidgetItem* first_item, QTreeWidgetItem* last_item); // error
    // explicit SlideShowDlg(QWidget *parent = nullptr, QTreeWidgetItem* first_item = nullptr, QTreeWidgetItem* last_item = nullptr);
    explicit SlideShowDlg(QTreeWidgetItem* first_item, QTreeWidgetItem* last_item, QWidget *parent = nullptr);

    ~SlideShowDlg();

private slots:
    void SlotSlideNext();
    void SlotSlidePre();

private:
    Ui::SlideShowDlg *ui;

    // 从 _first_item 一直播放到 _last_item 个图片为止
    QTreeWidgetItem* _first_item;
    QTreeWidgetItem* _last_item;

signals:
};

#endif // SLIDESHOWDLG_H
